import axios from "axios";

export default {
  state () {
    return {
      list: []
    }
  },
  mutations: {
    listGet (state, list) {
      state.list = list
    }
  },
  actions: {
    async getList ({ commit }) {
      const res = await axios.get('http://192.168.87.204:3000/cart')
      console.log(res);
      commit('listGet', res.data)
    },
    async changecount({commit},data){
      
    }
  },
  getters: {},
  namespaced: true
}